package com.zheng.damoTest;

public class FuAndZi {
    public static void main(String[] args) {
//        Fu f=new Fu();
//        System.out.println(f.name);
//        System.out.println(f.funame);
//        Zi z=new Zi();
//        System.out.println(z.name);
//        System.out.println(z.ziname);
//        System.out.println(z.funame);
        Fu fu=new Zi();
        System.out.println(fu.name);
        System.out.println(fu.funame);


    }

}
class Fu{
    public  int name=10;
    public int funame=20;
    public static void fumathod(){
        System.out.println("fu");
    }

}
class Zi extends Fu{
    public  int name=30;
    public int ziname=40;
    public static void zimathod(){
        System.out.println("zi");
    }


}